<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html;charset=utf-8">
  <title> 周伯通跨域测试 </title>
  <script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.js"></script>
 </head>

 <body>
    <div id="show"></div>
    <script type="text/javascript">
    $.post("http://localhost:8080/admin/test",{userName:"周伯通"})
      .done(function(data){
        document.getElementById("show").innerHTML = data.username + ' ' + data.gender;
      });
    </script>
 </body>
</html>